import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
  {
    title: '1卡权益初始化，2直接为会员卡添加权益',
    dataIndex: 'cardserverType',
    width: 200,
  },
  {
    title: '电子卡Id',
    dataIndex: 'accountGoodsId',
    width: 200,
  },
  {
    title: '权益id',
    dataIndex: 'serverId',
    width: 200,
  },
  {
    title: '服务名称',
    dataIndex: 'serverName',
    width: 200,
  },
  {
    title: '计费方式（1期间 2计次）',
    dataIndex: 'billingWay',
    width: 200,
  },
  {
    title: '服务类型',
    dataIndex: 'serverType',
    width: 200,
  },
  {
    title: '服务描述',
    dataIndex: 'serverDesc',
    width: 200,
  },
  {
    title: '服务编码',
    dataIndex: 'serverCode',
    width: 200,
  },
  {
    title: '数值类型',
    dataIndex: 'numType',
    width: 200,
  },
  {
    title: '初始值',
    dataIndex: 'serverValue',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'useValue',
    width: 200,
  },
  {
    title: '剩余值',
    dataIndex: 'restValue',
    width: 200,
  },
  {
    title: '权益生效日期',
    dataIndex: 'initDate',
    width: 200,
  },
  {
    title: '权益状态',
    dataIndex: 'cardserverState',
    width: 200,
  },
  {
    title: '权益过期日期',
    dataIndex: 'expireDate',
    width: 200,
  },
  {
    title: '创建日期',
    dataIndex: 'createDate',
    width: 200,
  },
  {
    title: '是否删除',
    dataIndex: 'deleted',
    width: 200,
  },
  {
    title: '更新人',
    dataIndex: 'updateUser',
    width: 200,
  },
  {
    title: '更新时间',
    dataIndex: 'updateTime',
    width: 200,
  },
  {
    title: '创建人',
    dataIndex: 'createUser',
    width: 200,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    label: '1卡权益初始化，2直接为会员卡添加权益',
    field: 'cardserverType',
    component: 'Input',
    required: true,
  },
  {
    label: '电子卡Id',
    field: 'accountGoodsId',
    component: 'Input',
    required: true,
  },
  {
    label: '权益id',
    field: 'serverId',
    component: 'Input',
    required: true,
  },
  {
    label: '服务名称',
    field: 'serverName',
    component: 'Input',
    required: true,
  },
  {
    label: '计费方式（1期间 2计次）',
    field: 'billingWay',
    component: 'Input',
    required: true,
  },
  {
    label: '服务类型',
    field: 'serverType',
    component: 'Input',
    required: true,
  },
  {
    label: '服务描述',
    field: 'serverDesc',
    component: 'Input',
    required: true,
  },
  {
    label: '服务编码',
    field: 'serverCode',
    component: 'Input',
    required: true,
  },
  {
    label: '数值类型',
    field: 'numType',
    component: 'Input',
    required: true,
  },
  {
    label: '初始值',
    field: 'serverValue',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'useValue',
    component: 'Input',
    required: true,
  },
  {
    label: '剩余值',
    field: 'restValue',
    component: 'Input',
    required: true,
  },
  {
    label: '权益生效日期',
    field: 'initDate',
    component: 'Input',
    required: true,
  },
  {
    label: '权益状态',
    field: 'cardserverState',
    component: 'Input',
    required: true,
  },
  {
    label: '权益过期日期',
    field: 'expireDate',
    component: 'Input',
    required: true,
  },
  {
    label: '创建日期',
    field: 'createDate',
    component: 'Input',
    required: true,
  },
  {
    label: '是否删除',
    field: 'deleted',
    component: 'Input',
    required: true,
  },
  {
    label: '更新人',
    field: 'updateUser',
    component: 'Input',
    required: true,
  },
  {
    label: '更新时间',
    field: 'updateTime',
    component: 'Input',
    required: true,
  },
  {
    label: '创建人',
    field: 'createUser',
    component: 'Input',
    required: true,
  },
  {
    label: '创建时间',
    field: 'createTime',
    component: 'Input',
    required: true,
  },
];
